/**
 * @file:          Config_StepperMotor.c
 * @brief:         
 * @details:       
 * @author:        wjh
 * @date created:  2023.06.12
 * @version:       1.0.0
 * @par copyright (c):
 *   
 * @par history (desc):
 *   version:1.0.0, wjh, 2023.06.12,12:43:05
 */
/* Include Files **************************************************************/
#include "ConfigOption.h"
#include "string.h"
#include "main.h"

/* Function Declare ***********************************************************/


/* Global Variable Define *****************************************************/
void Config_FlashManager_EncoderCalibration(FlashManager *self);
FlashManager flash_manager_encoder_calibration = {.ConfigParam = Config_FlashManager_EncoderCalibration};
void Config_FlashManager_EncoderCalibration(FlashManager *self)
{
    // StepperMotorController *smc = &stepper_motor_controller;

    memset(self, 0, sizeof(FlashManager));
    self->ConfigParam = Config_FlashManager_EncoderCalibration;
    self->Init = FlashManager_Init;
    self->RegisterVariableToTable = FlashManager_RegisterVariableToTable;

    self->param_flash_start_addr = (void *)0x0801E000UL;
    self->param_flash_size_byte = 4 * 1024UL;
}